<template>
    <div>
        <hr />
        <h1>MyHello</h1>
        name:{{ name }}<br />
        age:{{ age }}<br />
        sex:{{ sex == 1 ? '男' : '女' }}<br />
        输入性别:<input v-model='sex' /><br />
        <button @click="checkMe">点我</button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            name: 'admin',
            age: 20,
            sex: 1
        }
    },
    methods: {
        checkMe() {
            alert("点我~~~")
        }
    }
}

</script>

<style scoped>

</style>